cmake_minimum_required(VERSION 3.0.0)
project(visual_normal VERSION 0.1.0)
set(CMAKE_BUILD_TYPE "Release")
# 设置PCL点云库依赖
find_package(PCL REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")#不加这个会报错
link_directories(${PCL_LIBRARY_DIRS})
link_libraries(${PCL_LIBRARIES})
add_definitions(${PCL_DEFINITIONS})

find_package(Utils REQUIRED)
include_directories(${Utils_INCLUDE_DIRS})
link_libraries(${Utils_LIBRARIES})
# thread support
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})

add_executable(visual_normal main.cpp)
INSTALL(TARGETS visual_normal RUNTIME DESTINATION bin)